package org.principles.demo5;

/**
 * 迪米特法则
 */
public class Client {
    public static void main(String[] args) {
        Star star = new Star("吴亦凡");
        Fans fans = new Fans("都美竹");
        Company company = new Company("紫山文化");

        Agent agent = new Agent();
        agent.setFans(fans);
        agent.setStar(star);
        agent.setCompany(company);

        agent.meet();
        agent.business();
    }
}
